package com.fushenlan.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 居委会实体类
 * @author Administrator
 * @date 2022/4/22 16:46
 */
@Data
@TableName(value = "neighborhood_info")
public class NeighborhoodInfoDO {

    /**
     * 居委会表主键id
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    /**
     * 居委名称
     */
    @TableField(value = "neighborhoodName")
    private String neighborhoodName;

    /**
     * 省
     */
    @TableField(value = "provinceCode")
    private String provinceCode;

    /**
     * 市
     */
    @TableField(value = "cityCode")
    private String cityCode;

    /**
     * 区/县
     */
    @TableField(value = "dictCode")
    private String dictCode;

    /**
     * 街道
     */
    @TableField(value = "streetCode")
    private String streetCode;

    /**
     * 创建时间
     */
    @TableField(value = "createDate")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String createDate;

    /**
     * 更新时间
     */
    @TableField(value = "updateDate")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String updateDate;
}
